const explain = require("explain")
const uniID = require('uni-id')

module.exports = class file extends explain.service {
	async deleteFile(params) {
		const payload = await uniID.checkToken(params.token)
		if (payload.code) {
			return payload
		}
		return await uniCloud.deleteFile({
			fileList: params.fileList
		})
	}
}
